﻿@model StudentValidate
<form class="form-horizontal uiform" method="post"
      data-modal="true"
      data-table=".uitable"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.mtfSuccess"
      action="@Url.Action("Save")">
    <div class="modal-header">
        <button class="close" data-dismiss="modal" type="button" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">@Html.EditStatus("学习验证")</h4>
    </div>
    <div class="modal-body">
        @Html.AntiForgeryToken()
        @Html.MarkCreate()
        @Html.HiddenFor(p => p.Id)
        <div class="alert alert-danger fxhide"></div>
        <div class="form-group">
            <label class="control-label col-md-3">
                <span class="required"> * </span>
                验证标题：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.Name)" value="@Model.Name"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入验证标题'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                <span class="required"> * </span>
                选项A：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.A)" value="@Model.A"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入选项A'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                <span class="required"> * </span>
                选项B：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.B)" value="@Model.B"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入选项B'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                选项C：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.C)" value="@Model.C"
                        data-validate="maxlength: 50"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                选项D：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.D)" value="@Model.D"
                       data-validate="maxlength: 50"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                <span class="required"> * </span>
                正确答案：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.Answer)" value="@Model.Answer"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入正确答案'"
                       type="text" autocomplete="off" />
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">
            <i class="fa fa-save"></i> 保存
        </button>
        <button class="btn btn-default" type="button" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>